﻿using System.Diagnostics;
using System.Threading;
using System.Xml;
using ff14bot;
using ff14bot.Helpers;
using ff14bot.Interfaces;
using ff14bot.Managers;
using ff14bot.Objects;
using Clio.Utilities;
using System;
using System.IO;
using System.Configuration;

#region Cross Variables
namespace OrderUp
{
    public class Variables
    {
        public static Vector3 playerlocation;
        public static string targetname;
        public static bool hastarget;
    }
}
#endregion

namespace OrderUp
{
    public class OrderUp : IBotPlugin
    {
        #region Initialization Information
        public string Author { get { return " kagamihiiragi17"; } }
        public string Description { get { return "Easier creation of Order Bot profiles"; } }
        public Version Version { get { return new Version(1, 1, 6); } }

        public bool Equals(IBotPlugin other)
        {
            throw new NotImplementedException();
        }
        public void OnInitialize()
        {

        }
        public void OnShutdown()
        {

        }
        public void OnEnabled()
        {
            
        }
        public void OnDisabled()
        {

        }
        public string Name
        {
            get { return "OrderUp"; }
        }
        public bool WantButton
        {
            get { return true; }
        }
        public string ButtonText
        {
            get { return "OrderUp"; }
        }
        public void OnButtonPress()
        {
            if (_form == null || _form.IsDisposed || _form.Disposing)
                _form = new OrderUpForm();

            _form.ShowDialog();
        }
        #endregion

        private OrderUpForm _form;

        public void OnPulse()
        {
            /*
            Variables.hastarget = Core.Player.HasTarget;
            if (Core.Player.HasTarget)
            {
                Variables.targetname = Core.Target.Name;
            }
            else
            {
                Variables.targetname = "";
            }

            Variables.playerlocation = Core.Player.Location;
            */
        }
    }
}